<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>

</h:head>

<h:body>
	<p:layout fullPage="true" id="layout">

		<p:layoutUnit position="west" size="250">
			<ui:include src="../menuvertical.xhtml" />
		</p:layoutUnit>

		<p:layoutUnit position="center">
			<h:form id="formPrincipal">
				<p:growl id="growlAlerta" showDetail="false"/>
				<div align="right">
					<p:commandButton value="Logout" action="/login.xhtml"/>
				</div>
				<p:fieldset legend="Editar Usuarios">
					
					<p:dataTable editable= "true" style="margin-bottom:20px">
						<f:facet name="header">
           					Lista de Usuarios
       					</f:facet>
       					<p:ajax event="rowEdit" update=":formPrincipal:growlAlerta"/>
       					<p:ajax event="rowEditCancel" update=":formPrincipal:growlAlerta"/>
       					
       					<p:column headerText="Id">
       						<p:cellEditor>
       							<f:facet name="output"> <h:outputText value=""/> </f:facet>
       							<f:facet name="input"> <p:inputText style="width:100%"/> </f:facet>
       						</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Nombre">
           					<p:cellEditor>
               					<f:facet name="output"> <h:outputText value="" /></f:facet>
               					<f:facet name="input"> <p:inputText style="width:100%" label="Nombre"/></f:facet>
           					</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Apellido Paterno">
           					<p:cellEditor>
               					<f:facet name="output"> <h:outputText value="" /></f:facet>
               					<f:facet name="input"> <p:inputText style="width:100%" label="Apellido Paterno"/></f:facet>
           					</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Apellido Materno">
           					<p:cellEditor>
               					<f:facet name="output"> <h:outputText value="" /></f:facet>
               					<f:facet name="input"> <p:inputText style="width:100%" label="Apellido Materno"/></f:facet>
           					</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Clave de Usuario">
           					<p:cellEditor>
               					<f:facet name="output"> <h:outputText value="" /></f:facet>
               					<f:facet name="input"> <p:inputText style="width:100%" label="Clave de Usuario"/></f:facet>
           					</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Password">
           					<p:cellEditor>
               					<f:facet name="output"> <h:outputText value="" /></f:facet>
               					<f:facet name="input"> <p:inputText style="width:100%" label="Password"/></f:facet>
           					</p:cellEditor>
       					</p:column>
       					
       					<p:column headerText="Departamento">
           					<p:cellEditor>
               					<f:facet name="output"><h:outputText  /></f:facet>
               						<f:facet name="input">
                   						<h:selectOneMenu  style="width:100%">
                       						<f:selectItems />
                   						</h:selectOneMenu>
               						</f:facet>
        				   	</p:cellEditor>
       					</p:column>
       					
       					<p:column style="width:32px">
           					<p:rowEditor />
       					</p:column>
       					
					</p:dataTable>
				</p:fieldset>
			</h:form>
		</p:layoutUnit>
	</p:layout>
</h:body>
</html>